"""日志模块 - 提供RPA框架的日志功能"""

# 使用延迟导入避免循环导入
__all__ = ['Logger', 'get_logger']

__version__ = '1.0.0'
__author__ = 'RPA Developer'

# 定义一个函数来进行实际的导入
def _get_logger_module():
    from .logger import Logger, get_logger
    return Logger, get_logger

# 在第一次访问时进行导入
Logger = None
get_logger = None

# 定义自定义的__getattr__函数来延迟导入
def __getattr__(name):
    global Logger, get_logger
    if Logger is None or get_logger is None:
        Logger, get_logger = _get_logger_module()
    if name == 'Logger':
        return Logger
    elif name == 'get_logger':
        return get_logger
    raise AttributeError(f"module '{__name__}' has no attribute '{name}'")